package com.sky.controller.common;

import com.sky.dto.CarouselDTO;
import com.sky.result.Result;
import com.sky.vo.CarouselVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/common/carousel")
public class CarouselController {

    /**
     * 新增轮播图
     */
    @PostMapping
    public Result<String> addCarousel(@RequestBody CarouselDTO carousel) {
        return Result.success();
    }

    /**
     * 删除轮播图
     */
    @DeleteMapping
    public Result<String> deleteCarousel(Integer ids){
        return Result.success();
    }

    /**
     * 启用/禁用 轮播图
     */
    @PutMapping
    public Result<String> statusCarousel(Integer ids,Integer status){
        return Result.success();
    }

    /**
     * 查询轮播图
     */
    @GetMapping
    public Result<List<CarouselVO>> getCarousel(){
        return Result.success();
    }
}
